package me.jessyan.mvparms.demo.mvp.ui.adapter;

import android.view.View;

import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;

import java.util.List;

import me.jessyan.mvparms.demo.R;
import me.jessyan.mvparms.demo.mvp.ui.holder.FragBarndRvAdapterHolder;

/**
 * @author DrChen
 * @Date 2019/2/27 0027.
 * qq:1414355045
 */
public class FragBrandRvAdapter extends DefaultAdapter<Boolean>{
    public FragBrandRvAdapter(List<Boolean> infos) {
        super(infos,true);
    }

    @Override
    public BaseHolder<Boolean> getHolder(View v, int viewType) {
        return new FragBarndRvAdapterHolder(v);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_frag_brand_rv;
    }
}
